package com.sl.au.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.sl.au.entity.ViewForEventRegister;

public interface ViewForEventRegisterRepository extends JpaRepository<ViewForEventRegister, String>{

	@Query("select a from ViewForEventRegister a where a.registerEventContent like %?1% or a.eventName like %?1%")
	Page<ViewForEventRegister> getByKey(String key, Pageable pageable);
}
